package cn.edu.seu.ssny.service.impl;

import cn.edu.seu.ssny.dao.IDeviceTemplateDao;
import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.DeviceTemplate;
import cn.edu.seu.ssny.service.IDeviceTemplateService;
import cn.edu.seu.ssny.service.support.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 设备数据表
 */
@Service
public class DeviceTemplateServiceImpl extends BaseServiceImpl<DeviceTemplate, Integer> implements IDeviceTemplateService {

    @Autowired
    private IDeviceTemplateDao deviceTemplateDao;

    @Override
    public IBaseDao<DeviceTemplate, Integer> getBaseDao() {
        return this.deviceTemplateDao;
    }

    @Override
    public DeviceTemplate findAlarm() {
        return deviceTemplateDao.findByName("报警");
    }
}